package com.SMP.dao;

import com.SMP.model.Attendance;
import com.SMP.model.AttendanceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AttendanceMapper {

    int deleteByExample(AttendanceExample example);

    int insert(Attendance record);

    int insertSelective(Attendance record);

    List<Attendance> selTeaByName(String name);

    List<Attendance> selTeaById(String id);

    List<Attendance> selStudentByName(String name);

    List<Attendance> selStudentById(String id);

    List<Attendance> selectByExample(AttendanceExample example);

    Long countByExample(AttendanceExample example);

    List<Attendance> selectAtt(String professional);

    List<Attendance> selectByLessons(String lessonsId);

    List<Attendance> selectByClasssAndGrade(String grade,String classs);

    List<Attendance> selectGrade();

    List<Attendance> selectClasss(String grade);

    List<Attendance> selClasss();

    List<Attendance> selectByAttendance(@Param("record") Attendance record);

    int updateByExampleSelective(@Param("record") Attendance record, @Param("example") AttendanceExample example);

    int updateByExample(@Param("record") Attendance record, @Param("example") AttendanceExample example);
}